package com.bjpowernode.crm.workbench.mapper;

import com.bjpowernode.crm.workbench.domain.Contacts;

import java.util.List;

public interface ContactsMapper {

    int insert(Contacts record);

    int updateByPrimaryKey(Contacts record);
    //增加
    int insertSelective(Contacts record);
    //删除
    int deleteByPrimaryKey(String id);
    //修改
    int updateByPrimaryKeySelective(Contacts record);
    //根据主键查询
    Contacts selectByPrimaryKey(String id);
    //有条件查询全部
    List<Contacts> selectAllByCondition(Contacts contacts);
    //根据主键查询详情
    Contacts selectByPrimaryKeyForDetails(String id);
    //根据名称模糊查询
    List<Contacts> selectByName(String fullName);
}